package com.learn.training.multithread.chapter11.demo1;

public class Demo {
    public static void main(String[] args) {
        log("start main...");
        new Thread(() -> {
            log("run task...");
        }).start();

        new Thread(() -> {
            log("print...");
        }).start();

        log("end main...");
    }

    static void log(String message) {
        System.out.println(Thread.currentThread().getName() + ": " + message);
    }
}
